-- GENERATED SPELL FOR [Cairne Bloodhoof] --


function spell0_3057(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3057', 606, 1)
end

function spell1_3057(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3057', 5298, 1)
end

function spell2_3057(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(23931,pUnit)
pUnit:RegisterEvent('Sorts_3057', 8311, 1)
end

function spell3_3057(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(22916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3057', 585, 1)
end

function spell4_3057(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(59705,pUnit)
pUnit:RegisterEvent('Sorts_3057', 6279, 1)
end

function Sorts_3057(pUnit, Event)
local choix_sorts_3057 = math.random(0, 4)
if choix_sorts_3057 == 0 then
pUnit:RegisterEvent('spell0_3057', 1, 1)
end
if choix_sorts_3057 == 1 then
pUnit:RegisterEvent('spell1_3057', 1, 1)
end
if choix_sorts_3057 == 2 then
pUnit:RegisterEvent('spell2_3057', 1, 1)
end
if choix_sorts_3057 == 3 then
pUnit:RegisterEvent('spell3_3057', 1, 1)
end
if choix_sorts_3057 == 4 then
pUnit:RegisterEvent('spell4_3057', 1, 1)
end
end

function mob3057_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3057', math.random(1500, 3000), 1)
end

function mob3057_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3057_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3057_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3057, 1, 'mob3057_Action')
RegisterUnitEvent(3057, 2, 'mob3057_Leave')
RegisterUnitEvent(3057, 3, 'mob3057_Kill')
RegisterUnitEvent(3057, 4, 'mob3057_Die')
